local o = vim.opt

-- indent
o.smarttab = true
o.autoindent = true
o.smartindent = true
o.tabstop = 4
o.shiftwidth = 4

-- number
o.number = true
o.relativenumber = true

-- column
o.colorcolumn = "80"

-- qol
o.title = true
o.scrolloff = 8
o.encoding = "utf-8"
o.clipboard = o.clipboard + "unnamedplus"
o.wrap = true
o.expandtab = true
o.list = true
o.cursorline = true

-- etc
o.history = 10
o.laststatus = 0
o.ruler = true

vim.g.mapleader = " "
vim.api.nvim_set_keymap("n", "Zs", ":wa<CR>", {})

vim.api.nvim_set_keymap("n", "<leader>s", ":tabnew<CR>", {})
vim.api.nvim_set_keymap("n", "<leader>h", ":tabprevious<CR>", {})
vim.api.nvim_set_keymap("n", "<leader>l", ":tabnext<CR>", {})

vim.api.nvim_create_autocmd("TextYankPost", {
    callback = function() vim.highlight.on_yank({ higroup = "Visual" }) end
})

require("lazy").setup("sknvim.plugins", require("sknvim.config").lazy)
